/* 定义用户接口数据先关的TS类型
   用户登录接口携带参数的TS类型*/
export interface loginFormData {
  username: string
  password: string
}
/* 定义全部接口返回数据都拥有的TS类型*/
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
/* 定义登录接口返回类型 */
export interface loginResponseData extends ResponseData {
  data: string
}
/*  */
export interface userInfoReponseData extends ResponseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
export interface userLogOutReponseData extends ResponseData {
  data: null
}
